

package com.hex.ds.code.detection.metadata.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hex.ds.code.detection.metadata.po.ScanMetadata;
import com.hex.ds.code.detection.metadata.po.ScanSyncRuleDTO;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;

/**
 * 元数据扫描表
 *
 * @author yemw
 * @date 2023-08-28 15:44:04
 */
@Mapper
public interface ScanMetadataMapper extends BaseMapper<ScanMetadata> {

    /**
     * 通过同步规则 查询元数据信息
     * @param dto
     * @return
     */
    List<ScanMetadata> qyScanMetadataWhere(ScanSyncRuleDTO dto);

    List<ScanMetadata> qyScanMetadataWhereWord(ScanSyncRuleDTO dto);

    List<ScanMetadata> qyScanMetadataTable(ScanSyncRuleDTO dto);

    List<ScanMetadata> qyScanMetadataWhereYQR(ScanSyncRuleDTO dto);

    int updateToSyncType(String syncType, String syncRuleId, String partName, String location);

    List<String> queryTimePartitionTable();

    int delRepeatData();
}
